package com.pro.mapper;
/*
*   赵 22/1/7
*   用户
* */
import com.pro.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    //赵 22/1/7 获取所有前端用户 getUsers
    List<JsBeforeUser> getUsers(JsBeforeUser jsBeforeUser);

    /*//赵 22/1/8  普通检索用户列表 retrieval JsBeforeUser jsBeforeUser
    List<JsBeforeUser> retrieval(@Param("account") String account, @Param("nickname") String nickname, @Param("createDate") String createDate);
    //赵 22/1/9 高级检索用户列表 advancedRetrieval JsBeforeUser jsBeforeUser
    List<JsBeforeUser> advancedRetrieval(JsBeforeUser jsBeforeUser);*/

    //赵 22/1/9 修改用户信息 editUser JsBeforeUser jsBeforeUser
    Boolean editUser(JsBeforeUser jsBeforeUser);

    //赵 22/1/10 添加用户封禁信息 shutDown JsClosure jsBeforeUser
    Boolean shutDown(JsClosure jsBeforeUser);

    //赵 22/1/10 改变用户状态 editStatus Integer userId
    Boolean editStatus(@Param("userId") Integer userId);

    //赵 22/1/10 获取进思用户 getJinsiUsers JsUserDevelopment jsUserDevelopment
    List<JsUserDevelopment> getJinsiUsers(JsUserDevelopment jsUserDevelopment);

    //赵 22/1/10 修改进思用户信息 editJinsiUser JsUserDevelopment jsUserDevelopment
    Boolean editJinsiUser(JsBeforeUser jsBeforeUser);

    //赵 22/1/11 修改进思用户，进思用户表信息  editJinsiUserJ JsUserDevelopment jsUserDevelopment
    Boolean editJinsiUserJ(JsUserDevelopment jsUserDevelopment);

    /*
     *   赵 22/1/11 查询非进思用户的所有学生 getWrongJinsiUsers
     * */
    List<JsBeforeUser> getWrongJinsiUsers(JsBeforeUser jsBeforeUser);

    /*
     *   赵 22/1/11 查询零消费的所有用户||检索||高级检索 getZeroConsumptionUsers JsUserDevelopment jsUserDevelopment
     * */
    List<JsBeforeUser> getZeroConsumptionUsers(JsBeforeUser jsBeforeUser);

    /*
     * create by: 赵自强
     * create time: 2022/1/12 11:28
     * @return com.pro.pojo.JsonData
     * 获取已封禁用户信息 getShutDownUsers JsClosure jsClosure
     */
    List<JsClosure> getShutDownUsers(JsClosure jsClosure);

    /*
     * create by: 赵自强
     * create time: 2022/1/12 13:46
     * @return com.pro.pojo.JsonData
     * 解封用户 unsealUser Integer userId,Integer status
     */
    Boolean unsealUser(Integer userId,Integer status);
    /*
     * create by: 赵自强
     * create time: 2022/1/12 14:36
     * @return com.pro.pojo.JsonData
     * 添加封禁记录 addUnsealRecord JsUnseal jsUnseal
     */
    Boolean addUnsealRecord(JsUnseal jsUnseal);
    /*
     * create by: 赵自强
     * create time: 2022/1/12 15:08
     * @return com.pro.pojo.JsonData
     * 获取解封记录 getUnsealRecord JsUnseal jsUnseal
     */
    List<JsUnseal> getUnsealRecord(JsUnseal jsUnseal);
    /*
     * create by: 赵自强
     * create time: 2022/1/12 15:09
     * @return com.pro.pojo.JsonData
     * 根据id删除封禁记录 delUnsealRecord Integer id
     */
    Boolean delUnsealRecord(Integer id);
    /*
     * create by: 赵自强
     * create time: 2022/1/13 19:05
     * @return com.pro.pojo.JsonData
     * 判断用户是否为进思用户 determineUser Integer userId
     */
    List<JsUserDevelopment> determineUser(@Param("userId") Integer userId);
    /*
     * create by: 赵自强
     * create time: 2022/1/13 20:22
     * @return com.pro.pojo.JsonData
     * 添加进思用户 addJinsiUsers JsUserDevelopment jsUserDevelopment
     */
    Boolean addJinsiUsers(JsUserDevelopment jsUserDevelopment);
    /*
     * create by: 赵自强
     * create time: 2022/1/14 9:37
     * @return com.pro.pojo.JsonData
     * 获取优惠券列表 giveCoupon
     */
    List<Coupon> giveCoupon();
    /*
     * create by: 赵自强
     * create time: 2022/1/14 10:31
     * @return com.pro.pojo.JsonData
     * 添加用户优惠券 addCcouponUsed CouponUsed couponUsed
     */
    Boolean addCcouponUsed(CouponUsed couponUsed);
    /*
     * create by: 赵自强
     * create time: 2022/1/14 13:40
     * @return com.pro.pojo.JsonData
     * 获取创作者申请数据 getCreatorApply JsApplyRecord jsApplyRecord
     */
    List<JsApplyRecord> getCreatorApply(JsApplyRecord jsApplyRecord);
    /*
     * create by: 赵自强
     * create time: 2022/1/14 15:23
     * @return com.pro.pojo.JsonData
     * 改变创作者申请状态 applyAdopt JsApplyRecord jsApplyRecord
     */
    Boolean updateApply(JsApplyRecord jsApplyRecord);
    /*
     * create by: 赵自强
     * create time: 2022/1/14 15:32
     * @return com.pro.pojo.JsonData
     * 添加用户权限 addJurisdiction JsUserRole jsUserRole
     */
    Boolean addJurisdiction(JsUserRole jsUserRole);
    /*
     * create by: 赵自强
     * create time: 2022/1/15 9:02
     * @return com.pro.pojo.JsonData
     * 获取申请通过&&驳回列表 getAdoptAndReject JsApplyRecord jsApplyRecord
     */
    List<JsApplyRecord> getAdoptAndReject(JsApplyRecord jsApplyRecord);
    /*
     * create by: 赵自强
     * create time: 2022/1/15 9:54
     * @return com.pro.pojo.JsonData
     * 获取审核记录表 getAuditRecord JsAuditLog jsAuditLog
     */
    List<JsAuditLog> getAuditRecord(JsAuditLog jsAuditLog);
    /*
     * create by: 赵自强
     * create time: 2022/1/15 10:48
     * @return
     * 删除日志记录 delAuditRecord Integer auditLogId
     */
    Boolean delAuditRecord(Integer auditLogId);
}
